package com.pet.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("users")
public class UserDO {
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 手机号
     */
    @TableField(value = "phone", updateStrategy = FieldStrategy.IGNORED)
    private String phone;

    /**
     * 邮箱
     */
    @TableField(value = "email", updateStrategy = FieldStrategy.IGNORED)
    private String email;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * token
     */
    @TableField(value = "token", updateStrategy = FieldStrategy.IGNORED)
    private String token;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
}
